import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  redirect: '/employees',
  // children: [{
  //   path: 'employees',
  //   name: 'employees',
  //   component: () => import('@/views/employees/employees.vue'),
  //   meta: { title: '员工管理', icon: 'employees' }
  // }]
  children: [{
    path: '',
    name: 'employees',
    component: () => import('@/views/employees/employees.vue'),
    meta: { title: '员工管理', icon: 'employees' }
  },
  {
    path: 'import',
    name: 'import',
    component: () => import('@/views/employees/import'),
    meta: { title: '导入 Excel', icon: 'employees' },
    hidden: true
  },
  {
    path: 'detail/:id',
    name: 'detail',
    component: () => import('@/views/employees/detail.vue'),
    meta: { title: '员工详情', icon: 'employees' },
    hidden: true
  }
  ]
}
